{block name="main"}

<div class="breadcrumbs" id="breadcrumbs">
    <script type="text/javascript">
        try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
    </script>

    <ul class="breadcrumb">
        <li>
            <i class="icon-home home-icon"></i>
            <a href="{:url('admin/index/index')}">首页</a>
        </li>
        <li>相册管理</li>
        <li class="active">上传图片</li>
    </ul><!-- .breadcrumb -->

</div>
<div class="container" style="margin-top: 30px;">
    <div class="row">
        <div class="col-xs-12">
            <!-- PAGE CONTENT BEGINS -->
            <form class="form-horizontal" id="add-form" action="{:url('admin/images/uploadImg')}"  role="form"  enctype="multipart/form-data" method="post">


                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right"> 图片： </label>
                <div class="col-sm-9">
                    <input type="file" name="photo" id="photo">
                </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right"> 相册： </label>
                    <div class="col-sm-9 col-md-3">
                        <select class="form-control" name="imgid" id="imgid">
                            {volist name="data" id="img"}
                            <option value="{$img.id}">{$img.imgbox_name}</option>
                            {/volist}
                        </select>
                    </div>
                </div>



                <div class="clearfix">
                    <div class="col-md-offset-3 col-md-9">
                        <button class="btn btn-info btn-doadd" type="submit">
                            <i class="icon-ok bigger-110"></i>
                            上传
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

{/block}